package cn.zmall.search.service;

import cn.zmall.manager.dto.front.SearchResult;
import org.springframework.stereotype.Service;

/**
 * @Author BinBini
 * @Date 2020/11/4 11:23
 * @Version 1.0
 */
@Service
public interface SearchService {

    /**
     * ES商品搜索
     * @param keyword
     * @param page
     * @param size
     * @param sort
     * @param priceGt
     * @param priceLte
     * @return
     */
    SearchResult search(String keyword, int page, int size, String sort, int priceGt, int priceLte);

    /**
     * restful搜索接口
     * @param key
     * @return
     */
    String quickSearch(String key);

}
